import request from '@/config/axios'

//佣金记录 （分页）
export const brokerageRecordPage = async (data: any) => {
  return await request.post({url: `member/wallet-withdrawal-record/page`, data})
}

// 修改提现记录
export const withdrawalRecordUpdate = async (data) => {
  return await request.post({url: `/member/wallet-withdrawal-record/review`, data})
}

// 查询父级链
// export const getUserParentInviterChain = async (id: string) => {
//   return await request.get({url: `/member/user/getUserParentInviterChain?id=${id}`})
// }

//获取我的邀请人树结构
export const getUserInviterChainTree = async (id: string) => {
  return await request.get({url: `/member/user/getUserInviterChainTree?id=${id}`})
}

//代理商列表 （分页）
export const agentListPage = async (data: object) => {
  return await request.post({url: `/member/user/agent-page`, data})
}

//被邀请人订单 （分页）
export const inviteOrderPage = async (data: any) => {
  return await request.post({url: `/member/user/invitee-order-page`, data})
}

